import { network } from '@/utils';
import { CouierListParams } from './data';

import { charges } from '../../../../../config/Apis';

export async function querySendAPackageList(params: CouierListParams) {
  return network.get(charges.cabTariff_expressList, {
    params,
  });
}

export async function queryAllExpressList(params: CouierListParams) {
  return network.get(charges.cabTariff_unSelectExpressList, {
    params,
  });
}

export async function performSaveExpress(params: CouierListParams) {
  return network.post(charges.cabTariff_express, {
    data: params,
  });
}

export async function performDeleteExpress(params: CouierListParams) {
  return network.deleter(charges.cabTariff_express, {
    params,
  });
}
